<template>
	<view class="cubar">
		<image :src="bg" mode="widthFix" style="width: 750rpx;"></image>
		<view class="nav" :style="{height:CustomBar+'px'}">
			<view :style="{height:StatusBar+'px'}">

			</view>
			<view class="nav-main">
				<view class="test-s">
					<image class="back" src="../../static/back.png" mode="widthFix" @click="back"></image>
					<view class="test-s-main">
						<image class="shop" :src="logo" mode="aspectFill" :style="[style]"></image>
					</view>
				</view>
			</view>
		</view>
	</view>
</template>
<script>
	export default {
		props: {
			logo: {
				type: String,
				default: ''
			},
			bg: {
				type: String,
				default: ''
			},
			style: {
				type: Object,
				default: () => {}
			}
		},
		data() {
			return {
				StatusBar: this.StatusBar,
				CustomBar: this.CustomBar
			}
		},
		methods: {
			back() {
				uni.navigateBack({
					delta: 1
				});
			}
		}
	}
</script>
<style lang="scss" scoped>
	.cubar {
		position: relative;
	}

	.nav {
		position: absolute;
		top: 0;
		width: 750rpx;
		display: flex;
		flex-direction: column;

		&-main {
			flex: 1;
			padding-left: 20rpx;
			display: flex;
			align-items: center;
		}
	}

	.navs {
		background: linear-gradient(180deg, #8CCC5B, #74CF33);
		width: 1000rpx;
		position: relative;
		left: -125rpx;
		border-bottom-left-radius: 30%;
		border-bottom-right-radius: 30%;
	}

	.test-s {
		flex: 1;
		display: flex;

		&-main {
			flex: 1;
			display: flex;
			justify-content: center;

			.shop {
				width: 180rpx;
				height: 40rpx;
				position: relative;
				right: 45rpx;
			}
		}
	}

	.back {
		width: 45rpx;
	}
</style>
